<ng-template #content>
    <ng-content></ng-content>
</ng-template>
<div class="el-dropdown">
    <ng-container *ngIf="splitButton">
        <el-button [type]="type" [size]="size" (click)="openMenu($event)"> 
            <span>
                <ng-template [ngTemplateOutlet]="content"></ng-template> <i
                    class="el-icon-caret-bottom el-icon--right"></i>
            </span> 
        </el-button>
    </ng-container>
    <ng-container *ngIf="!splitButton"> 
        <span class="el-dropdown-link" (click)="openMenu($event)"
            style="cursor: pointer;">
            <ng-template [ngTemplateOutlet]="content"></ng-template> 
            <i class="el-icon-caret-bottom el-icon-right"></i>
        </span> 
    </ng-container>
    <div [style]="makeListStyles()">
        <ul class="el-dropdown-menu" #list [@dropAnimation]="showMenu">
            <ng-content></ng-content>
            <!-- <el-dropdown-item *ngFor="let item of model" [model]="item" (selected)="selectHandle(item)">
            </el-dropdown-item> -->
        </ul>
    </div>
</div>